package com.ant.storage.controller;


import com.ant.storage.common.ResultVo;
import com.ant.storage.dto.HouseSettlementDto;
import com.ant.storage.pojo.HouseAccount;
import com.ant.storage.pojo.HouseLease;
import com.ant.storage.pojo.HouseSettlement;
import com.ant.storage.service.IHouseAccountService;
import com.ant.storage.service.IHouseSettlementService;
import com.taobao.api.ApiException;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author melon
 * @since 2023-11-13
 */
@RestController
@RequestMapping("/houseSettlement")
public class HouseSettlementController {

    @Autowired
    private IHouseSettlementService settlementService;

    @ApiOperation(value = "保存信息")
    @PostMapping("/houseSettlementSave")
    public ResultVo houseSettlementSave(@RequestBody HouseSettlementDto dto) throws Exception {
        return  settlementService.houseSettlemenSave(dto);
    }

}
